package com.github.rxyor.ddd.service.infrastructure.repository.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import lombok.Data;

@Data
@TableName(value = "order_address")
public class OrderAddressDO implements Serializable {

    private static final long serialVersionUID = -9109295832739503270L;
    /**
     * 主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 关联订单ID
     */
    @TableField(value = "order_id")
    private Integer orderId;

    /**
     * 收货人姓名
     */
    @TableField(value = "name")
    private String name;

    /**
     * 收货人联系电话
     */
    @TableField(value = "phone")
    private String phone;

    /**
     * 所在区域编码
     */
    @TableField(value = "area_code")
    private String areaCode;

    /**
     * 所在区域
     */
    @TableField(value = "area")
    private String area;

    /**
     * 详细地址
     */
    @TableField(value = "address_detail")
    private String addressDetail;
}